package xyz.thoughtset.viewer.modules.datarel.service;


import xyz.thoughtset.viewer.common.crud.core.service.BaseService;
import xyz.thoughtset.viewer.modules.datarel.entity.DataRel;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface DataRelService extends BaseService<DataRel> {
    List<DataRel> saveRels(String pId, List<DataRel> dataRels);

    List<DataRel> listByTopic(String topic);
    List<DataRel> listByTopicAndSId(String sourceId, String topic);

    HashMap<String,List<DataRel>> groupRelsByPid(String pid);

    int delRelsByPId(String pId);

}
